package com.ims.core.enums;

/**
 * NatureType枚举类，用于表示ERP形式发票类型，包含发票、贷项、借项几种类型
 * @author IMS
 */
public enum NatureType {
    INVOICE('I', "发票"),
    CREDIT('C', "贷项"),
    DEBIT('D', "借项");

    private final char code;
    private final String name;

    NatureType(char code, String name) {
        this.code = code;
        this.name = name;
    }

    public char getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}